package Lab08;

//8_1
public class TestEquals {
    public static void main(String[] args) {
        Object circle1 = new Circle();
        Object circle2 = new Circle();
        System.out.println(circle1.equals(circle2));
    }
}

class Circle{
    double radius;

    @Override
    public boolean equals(Object circle) {
        return this.radius==((Circle)circle).radius;
    }
}


//class Circle{
//    double radius;
//
//    @Override
//    public boolean equals(Circle circle) {
//        return this.radius==circle.radius;
//
//    }
//}
